package com.xufeng.demo.test;

import lombok.extern.slf4j.Slf4j;

import javax.swing.*;
import java.awt.event.ActionListener;

/**
 * 使用函数式编程实现设计模式
 * 观察者模式
 *
 * @author xufeng
 * @since 21.07.2023
 */
@Slf4j
public class main6 {

    //JButton button = new Jbutton("Click Here");

    private static class JButton{

        main6.ActionListener actionListener;
    }

    private class ActionListener{
        public void actionPerformed() {
//            public void actionPerformed(ActionEvent e)
//            {
//                System.out.println("Handled by the old listener");
//            }
        }
    }

    public static void main(String[] args) {


       

    }


}
